//
//  YZClient+RechargeDraw.h
//  YZMicroStock
//
//  Created by Lv.Dongdong on 16/4/13.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZNetworkManager.h"
#import "YZMFundDetailModel.h"

@interface YZNetworkManager (RechargeDraw)

/**
 *  资金明细
 *
 *  @param type     资金类型
 *  @param page     当次页码
 *  @param pageSize 总页码
 *  @param timeEnd  截止时间
 *  @param success  成功回调
 *  @param failure  成功回调
 */
- (void)fetchFundListWithType:(YZS_FUND_TYPE)type andPage:(NSInteger)page andPageSize:(NSInteger)pageSize andTimeEnd:(NSString *)timeEnd
                      success:(void (^)(NSURLResponse *task,id responseObject))success
                      failure:(void (^)(NSError *error))failure;

/**
 *  获取快捷支付地址
 *
 *  @param money   充值金额
 *  @param success
 *  @param failure
 */
- (void)rd_fetchRechargeURLWithMoney:(NSString *)money payMethod:(NSString *)payMethod  success:(void (^)(NSURLResponse *task,id responseObject))success
                          failure:(void (^)(NSError *error))failure;

/**
 *  获取快捷支付结果
 *
 *  @param billNo   快捷支付订单号
 *  @param success
 *  @param failure
 */
- (void)rd_fetchRechargeResultWithBillNo:(NSString *)billNo success:(void (^)(NSURLResponse *task, id responseObject))success failure:(void (^)(NSError *error))failure;

/**
 *  获取充值Token(首次充值)
 *
 *  @param bankCode 银行代号
 *  @param bankCard 银行卡号
 *  @param amount   充值金额
 *  @param charge   充值手续费
 *  @param success
 *  @param failure
 */
- (void)rd_fetchRechargeTokenWithBankCode:(NSString *)bankCode andBankCard:(NSString *)bankCard andAmount:(double)amount andCharge:(double)charge success:(void (^)(NSURLResponse *task,id responseObject))success failure:(void (^)(NSError *error))failure;

/**
 *  获取支付方式列表
 *
 *  @param bankCode 银行代号
 *  @param bankCard 银行卡号
 *  @param amount   充值金额
 *  @param charge   充值手续费
 *  @param success
 *  @param failure
 */
- (void)checkPayMethodCountWithSuccess:(void (^)(NSURLResponse *, id))success failure:(void (^)(NSError *))failure;

/**
 *  获取充值Token
 *
 *  @param bankCardID 银行卡ID
 *  @param amount   充值金额
 *  @param charge   充值手续费
 *  @param success
 *  @param failure    
 */
- (void)rd_fetchRechargeTokenWithBankCardID:(long long)bankCardID andAmount:(double)amount andCharge:(double)charge success:(void (^)(NSURLResponse *, id))success failure:(void (^)(NSError *))failure;


/**
 *  提现
 *
 *  @param cardID       银行卡ID
 *  @param money        提现金额
 *  @param drawPassword 提现密码
 *  @param success
 *  @param failure
 */
- (void)rd_submitDrawRequestWithBankCardID:(long long)cardID andMoney:(NSString *)money andDrawPassword:(NSString *)drawPassword success:(void (^)(NSURLResponse *task,id responseObject))success failure:(void (^)(NSError *error))failure;

/**
 *  支付宝充值请求
 *
 *  @param money   充值金额
 *  @param account 充值账号
 *  @param success
 *  @param failure
 */
- (void)rd_payRequestWithMoney:(NSString *)money andAccount:(NSString *)account success:(void (^)(NSURLResponse *task, id responseObject))success failure:(void (^)(NSError *error))failure;

/**
 提现取消
 
 @param ID 提现ID
 @param success
 @param failure
 */
- (void)cancelWithDrawWithID:(NSInteger)ID success:(void (^)(NSURLResponse *task,id responseObject))success failure:(void (^)(NSError *error))failure;



/**
 获取冻结资金

 @param success
 @param failure 
 */
- (void)freezemoney_success:(void (^)(NSURLResponse *task,id responseObject))success failure:(void (^)(NSError *error))failure;


@end
